'''替换'''

s1 = 'hello python'
print(s1.replace(' ',''))

s2 = 'hello python python python'
print(s2.replace('python','java'))

print(s2.replace('python','java',2))

'''连接'''
s3 = ['hello','java','python']
print('|'.join(s3))
print(''.join(s3))

s4 = ('hello','java','python')
print('|'.join(s4))

s5 = 'python'
print('&'.join(s5))